<?php
class Achievement extends AppModel
{
	var $name = 'Achievement';
    var $primaryKey = 'id'; 

//	var $hasOne = array(
//			'Attachment' => array(
//			'className' => 'Attachment',
//			'foreignKey' => 'pid'
//			)
//	); 
	var $hasMany = array(
			'Attachment' => array(
			'conditions' => array("Attachment.is_deleted='0'"),
			'className' => 'Attachment',
			'foreignKey' => 'pid'
			)
	);
}
?>
